Skip to content

Fix crash in ConsoleOutputRecorder when an issue has a comment with an empty string #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

stmontgomery
Copy link
Contributor

This fixes a crash which can occur when recording an issue with a comment whose string is empty. It also adds some test coverage of this scenario and other "uncommon" comment examples.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Fixes rdar://149482060

@stmontgomery stmontgomery added bug 🪲 Something isn't working issue-handling Related to Issue handling within the testing library labels Apr 22, 2025
@stmontgomery stmontgomery self-assigned this Apr 22, 2025
@stmontgomery stmontgomery added this to the Swift 6.x milestone Apr 22, 2025
@stmontgomery
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan added the command-line experience ⌨️ enhancements to the command line interface label Apr 23, 2025
@stmontgomery
Copy link
Contributor Author

The macOS and Linux CI failures are expected to be resolved by swiftlang/swift#80830, but the release of a new main snapshot toolchain is currently blocked for unrelated reasons. Proceeding to merge.

@stmontgomery stmontgomery merged commit 696d9b9 into swiftlang:main Apr 24, 2025
1 of 3 checks passed
@stmontgomery stmontgomery deleted the empty-comment branch April 24, 2025 03:23
@stmontgomery stmontgomery modified the milestones: Swift 6.x, Swift 6.2 Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working command-line experience ⌨️ enhancements to the command line interface issue-handling Related to Issue handling within the testing library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants